Organize string-lists alphabetically for completion

This micro patch adds the ability to sort the lists alphabetically
for user interaction. Dirk asked me to do this for location, but
this actually changes for location, divemaster, buddy and suit.

Seems a good thing for all.

Fixes #780

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-12-10 14:00:08 -02:00 committed by Dirk Hohndel
parent 7ea27a2d88
commit 7e2f7747d6

View file

@ -15,6 +15,7 @@
list.append(buddy); \
} \
} \
std::sort(list.begin(), list.end()); \
setStringList(list); \
}