audio: sort output by content

This commit is contained in:
yenatch 2013-12-08 17:19:38 -05:00
parent a401ebc620
commit 697e2fa2ad

View File

@ -26,7 +26,7 @@ conf = configuration.Config()
def sort_asms(asms):
"""sort and remove duplicates from a list of tuples
format (address, asm, last_address)"""
return sorted(set(asms), key=lambda (x,y,z):(x,z,not y.startswith(';'), ':' not in y))
return sorted(set(asms), key=lambda (x,y,z):(x,z,not y.startswith(';'), ':' not in y, y))
class NybbleParam:
size = 0.5