Sorts labels by the percentage of items on them (fixes #4)