Need help for below scenario
000-2022, 000-2023, 005-2021, 000-2021, 003-2021, 004-2022, 007-2021
last 4 digits are year and middle 3 digits are priority number. I need this to be sorted with highest year first and below it should come the corresponding priority number of that years and then it should move on to the next lesser year.
expected result :
000-2023, 000-2022, 004-2022, 000-2021, 003-2021, 005-2021, 007-2021