How can you sort a multidimensional array in PHP based on a specific column without making a new database call?

When working with a multidimensional array in PHP, you may need to sort the array based on a specific column without making a new database call. One way to achieve this is by using the `array_multisort()` function in PHP. This function allows you to sort multiple arrays or a multidimensional array based on one or more columns. By specifying the column you want to sort on and the sorting order, you can rearrange the elements in the array without the need for a new database call.

// Sample multidimensional array
$students = array(
    array('name' => 'Alice', 'age' => 20),
    array('name' => 'Bob', 'age' => 22),
    array('name' => 'Charlie', 'age' => 19)
);

// Sort the array based on the 'age' column
array_multisort(array_column($students, 'age'), SORT_ASC, $students);

// Print the sorted array
print_r($students);