pub fn sort_coordinates(coordinates: &mut [i32]) -> Result<(), String>
Corrects a cell range so that the top-left and bottom-right corners are ordered correctly.