public static function getAppliedSorters()
    {
        $order = static::getOrderKey();
        $orderBy = static::getOrderByKey();

        $applied = \Illuminate\Support\Facades\Request::only($order, $orderBy);

        $applied = array_filter($applied);

        $default = [
            $orderBy => static::getDefaultOrderBy(),
            $order => static::getDefaultOrder()
        ];

        return $applied ?: $default;
    }
public static function getAppliedSorters()
    {
        $order = static::getOrderKey();
        $orderBy = static::getOrderByKey();

        $applied = \Illuminate\Support\Facades\Request::only($order, $orderBy);

        $applied = array_filter($applied);

        $default = [
            $orderBy => static::getDefaultOrderBy(),
            $order => static::getDefaultOrder()
        ];

        return $applied ?: $default;
    }
public static function getAppliedSorters ( ) { $ order = static :: getOrderKey ( ) ; $ orderBy = static :: getOrderByKey ( ) ; $ applied = \ Illuminate \ Support \ Facades \ Request :: only ( $ order , $ orderBy ) ; $ applied = array_filter ( $ applied ) ; $ default = [ $ orderBy => static :: getDefaultOrderBy ( ) , $ order => static :: getDefaultOrder ( ) ] ; return $ applied ? : $ default ; }
Get applied sorters from request or fallback to default.

@return array
Get applied sorters from request or fallback to default .