What is the sort order for Groups?

What is the sort order for Groups? The sort order I am seeing is mysterious.

Nextcloud version (eg, 12.0.2):13
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):