Fixes #2 support for labels for sorting