Reverse order of priority sorting even though it's not working yet.