
samples.expressions.fetch-sorted.pec Maven / Gradle / Ivy
define Person as storable category with attribute name
define main as method doing:
p1 = Person with "John" as name
p2 = Person with "Sophie" as name
p3 = Person with "Alex" as name
store p1, p2, p3
c = fetch all order by name
printLine "sorted by name ascending:"
for each p in c:
printLine "p -> " + p
printLine "sorted by name descending:"
c = fetch all order by name descending
for each p in c:
printLine "p -> " + p
© 2015 - 2025 Weber Informatics LLC | Privacy Policy