Made ordering a bit more specific by looking for a difference between min-width and min-height and max-width and max-height