0
我與這些值的數組:排序字符串+數字在Perl
scores Parent=mRNA1
scores Parent=mRNA2
scores Parent=mRNA3
scores Parent=mRNA4
scores Parent=mRNA5
scores Parent=mRNA6
scores Parent=mRNA7
scores Parent=mRNA8
scores Parent=mRNA9
scores Parent=mRNA10
scores Parent=mRNA11
,但我不能對它們進行排序。通過使用sort { $a cmp $b }
對其進行分類,我獲得:
scores Parent=mRNA1
scores Parent=mRNA10
scores Parent=mRNA11
scores Parent=mRNA2
scores Parent=mRNA3
scores Parent=mRNA4
scores Parent=mRNA5
scores Parent=mRNA6
scores Parent=mRNA7
scores Parent=mRNA8
scores Parent=mRNA9
我該怎麼辦?
僅供參考HTTP: //en.wikipedia.org/wiki/Schwartzian_transform – chilemagic