corrected sort keys for stashes