55namespace DragonCode \SizeSorter \Services ;
66
77use DragonCode \SizeSorter \Enum \Group ;
8- use DragonCode \SizeSorter \Sorters \SorterManager ;
8+ use DragonCode \SizeSorter \Sorters \ArrowSorter ;
9+ use DragonCode \SizeSorter \Sorters \CharSorter ;
10+ use DragonCode \SizeSorter \Sorters \NumberSorter ;
911use DragonCode \Support \Helpers \Ables \Stringable ;
1012use Illuminate \Support \Collection as IC ;
1113
@@ -73,7 +75,7 @@ protected static function sortChars(IC $values, string $column): IC
7375 protected static function sortSmallSizes (IC $ values , string $ column ): IC
7476 {
7577 return $ values ->sort (
76- SorterManager:: byArrow ($ column , -1 )
78+ ArrowSorter:: get ($ column , -1 )
7779 )
7880 ->groupBy (static fn (mixed $ size ) => static ::resolveValue ($ size , $ column )->toString (), true )
7981 ->map (static fn (IC $ values ) => static ::sortSpecialChars ($ values , $ column ));
@@ -82,21 +84,21 @@ protected static function sortSmallSizes(IC $values, string $column): IC
8284 protected static function sortSpecialChars (IC $ values , string $ column ): IC
8385 {
8486 return $ values ->sort (
85- SorterManager:: byChars ($ column )
87+ CharSorter:: get ($ column )
8688 );
8789 }
8890
8991 protected static function sortArrows (IC $ values , string $ column ): IC
9092 {
9193 return $ values ->sort (
92- SorterManager:: byArrow ($ column )
94+ ArrowSorter:: get ($ column )
9395 );
9496 }
9597
9698 protected static function sortNumbers (IC $ items , string $ column ): IC
9799 {
98100 return $ items ->sort (
99- SorterManager:: byNumbers ($ column )
101+ NumberSorter:: get ($ column )
100102 );
101103 }
102104
0 commit comments