BUG 999204. Implement rack sorting