How to order the elements of a mutableList in kotlin in a custom way

I'm trying to create a list of objects in kotlin, but I need the order to be defined by the user, that it can be ordered in any way chosen by the user, but I don't know how to achieve it.

How can I do it?