I have a very basic repeatable field where I am allowing the user to enter some field along with an input where they can enter the 'Display Order' [1,2,3,4,5]. But I am struggling with how I could apply any sorting function on the data that is stored for the repeatable field. A sample output is the following:
stdClass Object ( [order] => Array (  => 1  => 3  => 2 ) [url] => Array (  => /first  => /third  => /second ) )
How would I go about so that when the module content is displayed in the front end; it would be based on the order defined by user [1,2,3] and not as it is currently [1,3,2].