Fixed regex errors for sorting resolutions.