public static function parseOrder ($string)
    {
        if ($string === self::ASC || $string === self::DESC)
        {
            return $string;
        }

        throw new \InvalidArgumentException(sprintf("An invalid sort order (%s) was given; you may only sort using ASC or DESC.", $string));
    }