Sort changed to come before grid coloring