You cannot sort a text, so you can use a number insted. Set your membership level as a option set, and add display text as name, and add a number field as a “rank”.
EG:
display= Basic / rank= 1
display= Premium / rank= 2
Then in a repeating group you will be able to sort as Get option / Membership level / sort by: rank
1 Like