Can you change the script so it sorts based on the part before the first `=` sign. That will keep some of the ordering more sane.