in reply to sort based upon the partial data

sort can do custom comparisons, so you to extract everything after the _ (either with regexes or with split) and compare them.