So, let say I have this data
id | value | group
1 | 100 | A
2 | 120 | A
3 | 150 | B
4 | 170 | B
I want to sort it so it become like this
id | value | group
1 | 100 | A
3 | 150 | B
2 | 120 | A
4 | 170 | B
there will be more group than that, so if I the data ordered the group like (A,C,B,D,B,C,A), it will become (A,B,C,D,A,B,C)

id? One last burning question: WHY?1 | 100 | Abefore2 | 120 | A? Because of theidor because of thevalue? What if they have the same value?2 | 120 | Acan come before1 | 100 | A?