public static function arraySortUsingKeys($arrayToSort, $arrayKeysInOrder)
    {
        $result = array();
        foreach($arrayKeysInOrder as $key)
            if(array_key_exists($key, $arrayToSort))
                $result[] = $arrayToSort[$key];

        return $result;
    }