public static function Sort($data_array, $field_name, $sort_method = SORT_ASC)
    {
        $sorted_array = array();

        if(is_array($data_array))
        {
            $field_to_sort_by = array();
            $new_id_position = array();

            foreach($data_array as $key=>$fields)
            {
                $field_to_sort_by[$key] = $fields[$field_name];
                $new_id_position[$key] = $key;
            }

            array_multisort($field_to_sort_by, $sort_method, $new_id_position, $sort_method);

            foreach($new_id_position as $id)
            {
                $sorted_array[$id] = $data_array[$id];
            }
        }

        return $sorted_array;
    }