Fixed bug: Sorting config flag was ignored