mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
Allow numbers to be sorted separately from letters
Allow numbers to be sorted separately from letters.
This commit is contained in:
parent
540f903928
commit
52b4d6d7b0
@ -401,7 +401,7 @@ sub indexsort {
|
||||
} map { # transform array into list of 3-element lists
|
||||
my $ientry = $idxmap{$_};
|
||||
my $a = substr($$ientry[0],2);
|
||||
$a =~ tr/A-Za-z//cd;
|
||||
$a =~ tr/A-Za-z0-9//cd;
|
||||
[$_, uc($a), substr($$ientry[0],0,2)]
|
||||
} keys %idxmap;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user