Prioritized GEDSH-style for sort