Groupsarray is a single place where user root collection list and order is persisted. Why just not to save order position inside collection item itself? Because collections can be shared and they group and order can vary from user to user.
groupsarray with exact collection ID's. Typically this array looks like this: