Change the default task sorting criteria for Task List

Ended up adding the following to pom.xml in addition to Ragnar’s solution. Hack, but looking on a bright side - I don’t need to fork the camunda-bpm-webapp repo :upside_down_face:

<plugin>
    <groupId>com.google.code.maven-replacer-plugin</groupId>
    <artifactId>replacer</artifactId>
    <version>${replacer.plugin.version}</version>
    <executions>
        <execution>
            <phase>process-sources</phase>
            <goals>
                <goal>replace</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <file>${project.build.outputDirectory}/META-INF/resources/plugin/tasklist/app/plugin.js</file>
        <regex>false</regex>
        <replacements>
            <replacement>
                <token>(r.sortings.push({order:"desc",by:"created"}),r.updateSortings())</token>
                <value>(r.sortings.push({order:"asc",by:"dueDate"}),r.sortings.push({order:"desc",by:"priority"}),r.updateSortings())</value>
            </replacement>
        </replacements>
    </configuration>
</plugin>