Search

Showing 7 of 1,697 result(s)

/blog/2016/11/30/laravel-collection-public-api-sortby#content-sortstring

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...

/blog/2016/11/30/laravel-collection-public-api-sortby#content-sortlocalestring

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...

/blog/2018/04/22/laravel-5-collections-sorting-a-collection-based-on-a-key-value-with-sortby#content-sortstring-and-sortflagcase-flags-for-case-insensitivity

The SORT_FLAG_CASE flag can be combined with the SORT_STRING flag to treat each item as a string while also ignored the case of each item. The following example shows how to use the SORT_STRING with the SORT_FLAG_CASE flag when sorting the...

/blog/2018/04/22/laravel-5-collections-sorting-a-collection-based-on-a-key-value-with-sortby#content-the-sortnatural-flag

The SORT_NATURAL treats each item as a string while using a "natural ordering" algorithm to perform the sorting. The following code example shows how to use the SORT_NATURAL flag when sorting the $collection created previously (the callback...

/blog/2018/04/22/laravel-5-collections-sorting-a-collection-based-on-a-key-value-with-sortby#content-the-sortnatural-and-sortflagcase-flags-for-case-insensitivity

The SORT_FLAG_CASE flag can be combined with the SORT_NATURAL flag to treat each item as a string while also ignored the case of each item. The following example shows how to use the SORT_NATURAL with the SORT_FLAG_CASE flag when sorting the...

/antlers-toolbox/formatting-cli#content-prevent-formatting-of-specific-files

…3 @format false 4 @description This template will not be formatted by the Antlers formatter. 5 #}} 6 < div class = "hidden lg:block lg:col-span-3 xl:col-span-3" > 7 < nav aria-label = "Sidebar" class = "sticky top-6 divide-y divide-gray-300" > 8...

/antlers-toolbox/formatting#content-prevent-formatting-of-specific-files

…3 @format false 4 @description This template will not be formatted by the Antlers formatter. 5 #}} 6 < div class = "hidden lg:block lg:col-span-3 xl:col-span-3" > 7 < nav aria-label = "Sidebar" class = "sticky top-6 divide-y divide-gray-300" > 8...