I have an hash and i want to sort based on the keys with upper case words appearing just before the lowercase words.
Example:
JANE
jane
JIM
jim
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get the keys in order, apply
sortwith a custom sort function on the keys of the hash.This custom sort function compares strings first as if they were of the same case, and if equal, takes case into account.