Sorting by priority doesn't work as expected (in a grouped view)

You can see the image, when I’m grouping by a custom field, and then I sort by priority, the order is not correct (High>low>medium)

Thanks a lot Pablo for bringing this to our attention.

This issue has been fixed.