PageArray/WireArray


Sorting and Filtering

  • $a->shuffle()

    Randomize the order of all the items in the WireArray.

  • $a->sort("property")

    Sorts the WireArray by the given item property (string). You may also specify the property as "property.subproperty", where property resolves to a Wire derived object, and subproperty resolves to a property within that object. Prepend a minus sign "-" to the property name reverse the sort.

  • $a->filter("selector")

    Reduce the WireArray so that it only contains items that match the given selector.

  • $a->not("selector")

    Reduce the WireArray so that it only contains items that don't match the given selector.

  • $a->reverse()

    Return a new WireArray containing the items in reverse order.