Fixed sorting problem and bumped version to 1.7.9
Merge branch 'hotfix/fix_sorting'