sort font based on priority and font name