Enum ImageSort
- Namespace
- CivitaiSharp.Core.Models
- Assembly
- CivitaiSharp.Core.dll
Sorting options for image queries.
public enum ImageSort
- Extension Methods
Fields
MostCollected = 2Sort by the number of times images have been collected (descending). Maps to API value "Most Collected".
MostComments = 1Sort by the number of comments and discussions (descending). Maps to API value "Most Comments".
MostReactions = 0Sort by the total number of reactions received (descending). Maps to API value "Most Reactions".
Newest = 3Sort by creation date with newest first (descending). Maps to API value "Newest".
Oldest = 4Sort by creation date with oldest first (ascending). Maps to API value "Oldest".
Random = 5Random order. Maps to API value "Random".
Remarks
These values represent complete sort options with implied sort directions, not arbitrary field names. The Civitai API does not support toggling ascending/descending independently. For example, "Newest" implies descending by date, and "Most Reactions" implies descending by reaction count.
API string mappings are defined in ApiStringRegistry.