All Downloads are FREE. Search and download functionalities are using the official Maven repository.

samples.expressions.fetch-sorted.pec Maven / Gradle / Ivy

There is a newer version: 0.0.74
Show newest version
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