Custom sorting: consider sorting direction
Merge pull request #4 from DataDog/tristan/fix-custom-sorting

Custom sorting: consider sorting direction