SortedEntityClass
✖
SortedEntityClass
represents an entity class derived from class by sorting according to the values of the property prop.
breaks ties by successively using the values of the property specifications propi.
represents the first n entities of class when sorted by sortspec.
represents the entities m through n of class when sorted by sortspec.
Details
- In SortedEntityClass[class,sortspec,n], when class contains fewer than n entities, all entities are used.
- In SortedEntityClass[class,{prop1,prop2,…}], propi can be given as EntityProperty, EntityFunction or string.
- SortedEntityClass[class,prop,-n] is effectively equivalent to SortedEntityClass[class,prop->"Descending",n].
Examples
open allclose allBasic Examples (5)Summary of the most common use cases
Use SortedEntityClass to sort a class of entities:
https://wolfram.com/xid/0bc5rw7jkuetzgi-rqtyx5
Change the direction of the order:
https://wolfram.com/xid/0bc5rw7jkuetzgi-wzuh5p
Take only the first 10 entities:
https://wolfram.com/xid/0bc5rw7jkuetzgi-7bwepl
https://wolfram.com/xid/0bc5rw7jkuetzgi-3fseu6
When used with relational-database-backed entities, SortedEntityClass is equivalent to an ORDER BY statement:
https://wolfram.com/xid/0bc5rw7jkuetzgi-dpe8aj
https://wolfram.com/xid/0bc5rw7jkuetzgi-r20iif
Scope (1)Survey of the scope of standard use cases
The second argument of SortedEntityClass can be an EntityFunction:
https://wolfram.com/xid/0bc5rw7jkuetzgi-5cnfeq
Properties & Relations (1)Properties of the function, and connections to other functions
When SampledEntityClass is applied to SortedEntityClass:
https://wolfram.com/xid/0bc5rw7jkuetzgi-oxg1ey
The same class can be more simply expressed by using SortedEntityClass with three arguments:
https://wolfram.com/xid/0bc5rw7jkuetzgi-fryiyk
Wolfram Research (2019), SortedEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/SortedEntityClass.html.
Text
Wolfram Research (2019), SortedEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/SortedEntityClass.html.
Wolfram Research (2019), SortedEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/SortedEntityClass.html.
CMS
Wolfram Language. 2019. "SortedEntityClass." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SortedEntityClass.html.
Wolfram Language. 2019. "SortedEntityClass." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SortedEntityClass.html.
APA
Wolfram Language. (2019). SortedEntityClass. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SortedEntityClass.html
Wolfram Language. (2019). SortedEntityClass. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SortedEntityClass.html
BibTeX
@misc{reference.wolfram_2024_sortedentityclass, author="Wolfram Research", title="{SortedEntityClass}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/SortedEntityClass.html}", note=[Accessed: 10-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_sortedentityclass, organization={Wolfram Research}, title={SortedEntityClass}, year={2019}, url={https://reference.wolfram.com/language/ref/SortedEntityClass.html}, note=[Accessed: 10-January-2025
]}