Basic sorting by priority (ascii sort for now)