First Sorting Version For Bar Done