Sort by rating given precedence and fixed to follow JED rules