Bugfix: List the applications of a candidate in a fixed order
Description
Two applications of a candidate made in the same second were listed in an order PostgreSQL may choose freely, so the portal links mail could name them in a different order each time. They are listed by the time and then by their identifier, which follows the order in which they came in.
Impact
The mail with the portal links lists the applications in the order they were made.