Search results

sort :: forall a. Ord a => Array a -> Array a

Sort the elements of an array in increasing order, creating a new array. Sorting is stable: the order of equal elements is preserved.

sort [2, -3, 1] = [-3, 1, 2]
P purescript-arrays M Data.Array
sort :: forall a. Ord a => NonEmptyArray a -> NonEmptyArray a
P purescript-arrays M Data.Array.NonEmpty
sort :: forall a h. Ord a => STArray h a -> ST h (STArray h a)

Sort a mutable array in place. Sorting is stable: the order of equal elements is preserved.

P purescript-arrays M Data.Array.ST
sort :: forall a. Ord a => List a -> List a

Sort the elements of an list in increasing order.

P purescript-lists M Data.List
sort :: forall a. Ord a => NonEmptyList a -> NonEmptyList a
P purescript-lists M Data.List.NonEmpty
sort :: URLSearchParams -> Effect Unit
P purescript-node-url M Node.URL.URLSearchParams
sort :: forall r i. String -> IProp r i
P purescript-halogen M Halogen.HTML.Properties.ARIA
sort :: forall a. ArrayView a -> Effect Unit

Sorts the values in-place.

P purescript-arraybuffer M Data.ArrayBuffer.Typed
sort :: forall s a. Ord a => Vec s a -> Vec s a

Sort a vector of Ords.

P purescript-sized-vectors M Data.Vec
sort :: forall a. Ord a => OSet a -> OSet a
P purescript-ordered-set M Data.Set.Ordered
sort :: forall a. Ord a => Seq a -> Seq a

O(n*log(n)). Sort the sequence, using the sort from Data.Sequence.Ordered. Note that this sorting algorithm is unstable.

P purescript-sequences M Data.Sequence
sort :: forall f a. Functor f => Foldable f => Unfoldable f => Ord a => f a -> f a

Sort any structure (which has Foldable, Unfoldable, and Functor instances) by converting to an OrdSeq and back again. I am fairly sure this is usually O(n*log(n)), although of course this depends on the Unfoldable and Foldable instances.

P purescript-sequences M Data.Sequence.Ordered
Sort :: Usage
P purescript-js-intl M JS.Intl.Options.Usage
sort :: forall a. Ord a => ArrayView a -> ArrayView a
P purescript-array-views M Data.ArrayView
sort :: forall a. Ord a => NonEmptyArrayView a -> NonEmptyArrayView a
P purescript-array-views M Data.ArrayView.NonEmpty
sort :: forall anything value. Ord value => Array value -> Array (Update anything)

Given an array of orderable elements, produce the array of incremental operations to sort them.

P purescript-data-algebrae M Data.Algebra.Array
sort :: forall r. (r -> r -> Ordering) -> Query (DataFrame r) (DataFrame r)

Sort the rows of the dataframe by the given sorting function.

P purescript-dataframe M Data.DataFrame
P purescript-droplet M Droplet.Language.Internal.Syntax
sort :: forall a. List (Stamped a) -> List (Stamped a)

Sort a list of Stamped records ascending chronologically.

P purescript-gesso M Gesso.Time
sort :: Int -> Boolean -> Filter -> Effect Filter

Sorts the filtered range by the specified column, excluding the first row (the header row) in the range this filter is applied to.

P purescript-google-apps M Control.Google.Apps.Spreadsheet.Filter
sort :: Foreign -> Range -> Effect Range

Sorts the cells in the given range, by column and order specified.

P purescript-google-apps M Control.Google.Apps.Spreadsheet.Range
sort :: Icons
P purescript-materialize M Materialize.Icons.Data
sort :: forall a. Ord a => List a -> List a

Sort the elements of a list in increasing order, creating a new list.

Running time: O(n*log(n)).

P purescript-rrb-list M RRBList
sort :: forall a. Ord a => Array a -> SortedArray a

Sort an array and wrap it as a SortedArray.

P purescript-sorted-arrays M Data.SortedArray
sort :: URLSearchParams -> URLSearchParams

Sorts all key/value pairs, if any, by their keys.

P purescript-web-url M Web.URL.URLSearchParams
sort :: URLSearchParams -> Effect Unit
P purescript-web-urlsearchparams M Web.URLSearchParams
P purescript-yoga-elasticsearch M Yoga.Elasticsearch.Elasticsearch
Sort :: Foreign -> Sort
P purescript-yoga-elasticsearch M Yoga.Elasticsearch.Elasticsearch
sort :: forall r a (mode :: Type). Expr r a => Z3 r mode (Z3Sort r a)

sort represents the type of a Z3 expression

P purescript-z3 M Z3
sortBy :: forall a. (a -> a -> Ordering) -> Array a -> Array a

Sort the elements of an array in increasing order, where elements are compared using the specified partial ordering, creating a new array. Sorting is stable: the order of elements is preserved if they are equal according to the specified partial ordering.

compareLength a b = compare (length a) (length b)
sortBy compareLength [[1, 2, 3], [7, 9], [-2]] = [[-2],[7,9],[1,2,3]]
P purescript-arrays M Data.Array
sortBy :: forall a. (a -> a -> Ordering) -> NonEmptyArray a -> NonEmptyArray a
P purescript-arrays M Data.Array.NonEmpty
sortBy :: forall a h. (a -> a -> Ordering) -> STArray h a -> ST h (STArray h a)

Sort a mutable array in place using a comparison function. Sorting is stable: the order of elements is preserved if they are equal according to the comparison function.

P purescript-arrays M Data.Array.ST
sortBy :: forall a. (a -> a -> Ordering) -> List a -> List a

Sort the elements of a list in increasing order, where elements are compared using the specified ordering.

P purescript-lists M Data.List
sortBy :: forall a. (a -> a -> Ordering) -> NonEmptyList a -> NonEmptyList a
P purescript-lists M Data.List.NonEmpty
sortBy :: forall s a. (a -> a -> Ordering) -> Vec s a -> Vec s a

Sort a vector using an ordering function.

P purescript-sized-vectors M Data.Vec
Sorted :: forall a. (Array a) -> ModuleSort a
P purescript-language-cst-parser M PureScript.CST.ModuleGraph
sortBy :: forall a. (a -> a -> Ordering) -> OSet a -> OSet a
P purescript-ordered-set M Data.Set.Ordered
sortBy :: forall a. (a -> a -> Ordering) -> ArrayView a -> ArrayView a
P purescript-array-views M Data.ArrayView
sortBy :: forall a. (a -> a -> Ordering) -> NonEmptyArrayView a -> NonEmptyArrayView a
P purescript-array-views M Data.ArrayView.NonEmpty
sortBy :: forall anything value. (value -> value -> Ordering) -> Array value -> Array (Update anything)

Given an array, and a comparison function, produce the set of incremental operations required to sort the array.

P purescript-data-algebrae M Data.Algebra.Array
sortBy :: String -> Collection -> Promise (Array Foreign)

Same as toArray but with manual sorting applied to the array. Similar to orderBy but does sorting on the resulting array rather than letting the backend implementation do the sorting.

Documentation: dexie.org/docs/Collection/Collection.sortBy()

P purescript-dexie M Dexie.Collection
sortBy :: PivotValue -> (Array Foreign) -> PivotGroup -> Effect PivotGroup

Sorts this group by the specified PivotValue for the values from the oppositeGroupValues.

P purescript-google-apps M Control.Google.Apps.Spreadsheet.PivotGroup
sortBy :: forall a. (a -> a -> Ordering) -> List a -> List a

Sort the elements of a list in increasing order, where elements are compared using the specified partial ordering, creating a new list.

Running time: O(n*log(n)).

P purescript-rrb-list M RRBList
sorted :: forall a f. Ord a => Foldable f => Sorting -> Constraint (f a)
P purescript-halogen-datepicker M Halogen.Datepicker.Internal.Constraint
sortOn :: forall a b. Ord b => (a -> b) -> Array a -> Array a

Sort a list by a projection.

sortOn (\x -> if x == "dog" then 2 else 1) ["apple", "dog", "kiwi"] = ["apple", "kiwi", "dog"]
P purescript-arrays-extra M Data.Array.Extra
P purescript-halogen-datepicker M Halogen.Datepicker.Internal.Constraint
sortOn' :: forall a b. Ord b => (a -> b) -> Array a -> Array a

Sort a list by a projection. This version of sortOn uses the decorate-sort-undecorate paradigm or Schwartzian transform. Which means the projection for each entry will only be computed once at the cost of creating more data structures. You will have to benchmark your specific situation to find out whether sortOn or sortOn' is faster.

sortOn' (\x -> if x == "dog" then 2 else 1) ["apple", "dog", "kiwi"] = ["apple", "kiwi", "dog"]
P purescript-arrays-extra M Data.Array.Extra
sortWith :: forall a b. Ord b => (a -> b) -> Array a -> Array a

Sort the elements of an array in increasing order, where elements are sorted based on a projection. Sorting is stable: the order of elements is preserved if they are equal according to the projection.

sortWith (_.age) [{name: "Alice", age: 42}, {name: "Bob", age: 21}]
   = [{name: "Bob", age: 21}, {name: "Alice", age: 42}]
P purescript-arrays M Data.Array
sortWith :: forall a b. Ord b => (a -> b) -> NonEmptyArray a -> NonEmptyArray a
P purescript-arrays M Data.Array.NonEmpty
sortWith :: forall a b h. Ord b => (a -> b) -> STArray h a -> ST h (STArray h a)

Sort a mutable array in place based on a projection. Sorting is stable: the order of elements is preserved if they are equal according to the projection.

P purescript-arrays M Data.Array.ST