The SORT_STRING Flag | Laravel 5 Collections: Sorting a Collection Based on a Key Value With 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...