I am looping over an array of values building another array as the code below shows:
foreach ($mdl->info()['metadata'] as $info) {
    $fields[] = [
        'name'    => strtolower($info['COLUMN_NAME']),
        'title'   => ucfirst(strtolower($info['COLUMN_NAME'])),
        'type'    => $grid_type_mapper[$info['DATA_TYPE']],
        'width'   => $info['LENGTH'],
        'sorting' => true,
        'editing' => false,
    ];
}
One of the key existing on $info is COLUMN_POSITION and I want to sort the resulting array $fields by this COLUMN_POSITION, how?
