[PD] Sorting samples by value