samples.expressions.fetch-sorted.pec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WebSite Show documentation
Show all versions of WebSite Show documentation
Prompto Documentation Web Site POM
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 - 2024 Weber Informatics LLC | Privacy Policy