make sort direction an enum
Merge pull request #1490 from marcel-blonk/PLFM-2940

make sort direction an enum