I have a table that contains the following data.
Group A priority_points
001001924 421715
001001924 0
001001924 125
001014182 0
001014182 625
001015924 0
001015924 14
001015924 160
001021690 0
001021690 562
001050152 15870
001050152 58858
001050152 18954
001147495 131
001147495 250
001147495 30
001200443 0
001200443 0
001200443 83005
I would like to re-group the table so that priority points column is sorted in descending order whilst keeping the Group A column grouped together. So that it looks like this.
Group B priority_points
001001924 421715
001001924 125
001001924 0
001200443 83005
001200443 0
001200443 0
001050152 58858
001050152 18954
001050152 15870
001014182 625
001014182 0
001021690 562
001021690 0
001147495 250
001147495 131
001147495 30
001015924 160
001015924 14
001015924 0
Thanks for any help
Group A priority_points
001001924 421715
001001924 0
001001924 125
001014182 0
001014182 625
001015924 0
001015924 14
001015924 160
001021690 0
001021690 562
001050152 15870
001050152 58858
001050152 18954
001147495 131
001147495 250
001147495 30
001200443 0
001200443 0
001200443 83005
I would like to re-group the table so that priority points column is sorted in descending order whilst keeping the Group A column grouped together. So that it looks like this.
Group B priority_points
001001924 421715
001001924 125
001001924 0
001200443 83005
001200443 0
001200443 0
001050152 58858
001050152 18954
001050152 15870
001014182 625
001014182 0
001021690 562
001021690 0
001147495 250
001147495 131
001147495 30
001015924 160
001015924 14
001015924 0
Thanks for any help