You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently (on the projection branch), we have a standard method for SortBy, which takes a func to define less.
Many types can simply be evaluated as greater or less (‘ordered’ in Go’s terminology). Create a Sort method, which does not require a passed func, for types that pass the test of being ordered.
This will not require the big re-implemented Sort template; rather just satisfy the sort package’s Interface for these types, and wrap in a simple method that returns a sorted copy (instead of sorting in place).
The text was updated successfully, but these errors were encountered:
Currently (on the projection branch), we have a standard method for SortBy, which takes a func to define less.
Many types can simply be evaluated as greater or less (‘ordered’ in Go’s terminology). Create a Sort method, which does not require a passed func, for types that pass the test of being ordered.
This will not require the big re-implemented Sort template; rather just satisfy the sort package’s Interface for these types, and wrap in a simple method that returns a sorted copy (instead of sorting in place).
The text was updated successfully, but these errors were encountered: