[FEATURE] Sorting of constants and categories
Resolves #47