Showing 10 of 1,280 results.

SORT_NUMERIC | Laravel Collection Public API: sortBy

The SORT_NUMERIC treats each item as a number when doing the comparison. The following code example shows how to use the SORT_NUMERIC flag when sorting the $collection created previously (the callback function will return the string representation...

SORT_STRING | Laravel Collection Public API: sortBy

The SORT_STRING treats each item as a string when doing the comparison. The following code example shows how to use the SORT_STRING flag when sorting the $collection created previously (the callback function will return the string representation...

SORT_LOCALE_STRING | Laravel Collection Public API: sortBy

The SORT_LOCALE_STRING treats each item as a string, while also taking into account the current locale, when doing the comparison. The following code example shows how to use the SORT_LOCALE_STRING flag when sorting the $collection created...