Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Ordering:
- ''' Contains ordering functions '''
- @staticmethod
- def ByName(image_a, image_b):
- keymaker = GLib.utf8_collate_key_for_filename
- key_a = keymaker(image_a.fullname, len(image_a.fullname))
- key_b = keymaker(image_b.fullname, len(image_b.fullname))
- return cmp(key_a, key_b)
Advertisement
Add Comment
Please, Sign In to add comment