Mercurial > code > home > repos > light9
changeset 1191:37199cea3a2a
KC fix sortin
Ignore-this: 70ff3a7c177d1c60e4a2181639b91a6f
author | drewp@bigasterisk.com |
---|---|
date | Sun, 15 Jun 2014 18:21:16 +0000 |
parents | 5e7acb866b9f |
children | 5fc6a68b9d76 |
files | bin/keyboardcomposer |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/keyboardcomposer Sun Jun 15 18:21:12 2014 +0000 +++ b/bin/keyboardcomposer Sun Jun 15 18:21:16 2014 +0000 @@ -221,13 +221,16 @@ # there are unlikely to be any subs at startup because we # probably haven't been called back with the graph data yet - withgroups = sorted((self.graph.value(sub.uri, L9['group']), - self.graph.value(sub.uri, L9['order']), - sub) + withgroups = sorted( + (self.graph.value(sub.uri, L9['group']), + self.graph.value(sub.uri, L9['order']), + self.graph.label(sub), # todo: split numbers into ints so they sort right + sub.uri, + sub) for sub in self.submasters.get_all_subs()) log.info("withgroups %s", withgroups) - for group, order, sub in withgroups: + for group, order, _sortLabel, _sortUri, sub in withgroups: group = self.graph.value(sub.uri, L9['group']) if col == 0 or group != last_group: