in reply to sort hash values which is an array

in such scenario i wanted id with has the end date come first. How can i sort the anonymous array?

First you need some valid perl. Please fix your code, its only 4 lines, and almost every line is an error.Try again please.