in reply to Sorting file with regex

Maybe just pull out the substring between '}' and '(', stick that substring in a hash that uses the whole string as the key and the substring as a value. Kind of brute force, but if regex is not your strong suit(as it is not really mine), then this method should work for you...once that is done, sorting is a matter of making an array of the values(Author), sorting the array and printing out the hash keys with the values found in the sorted array.

Hope that is helpful...

...the majority is always wrong, and always the last to know about it...

Insanity: Doing the same thing over and over again and expecting different results...

A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is a facct