Okay, I'm officially going nuts. I have tried all solutions found online, however none is working.
I have this array:
$hits = array(
array('sortby' => 'String 1', 'html' => '<div>This element contains String 1</div>',
array('sortby' => 'String 11', 'html' => '<div>This element contains String 11</div>',
array('sortby' => 'String 2', 'html' => '<div>This element contains String 2</div>',
);
I want to sort the $hits array naturally by the "sortby" key, so the output becomes like this:
<div>This element contains String 1</div>
<div>This element contains String 2</div>
<div>This element contains String 11</div>
Which sort function could I use?