fixed issue where percentile wasnt sorted