MDL-58777 mod_assign: Explicitly sort records and set event priority
commit56d1ddd775a81b0527316786d4809689c964afd2
authorCameron Ball <cameron@moodle.com>
Fri, 5 May 2017 08:46:22 +0000 (5 16:46 +0800)
committerCameron Ball <cameron@moodle.com>
Wed, 10 May 2017 05:41:18 +0000 (10 13:41 +0800)
treeeb13ac244c6de66b373200527b0ee36ffcd90f27
parent8dada7e334af76f2a9dc529ec3e07c55e47a86d2
MDL-58777 mod_assign: Explicitly sort records and set event priority

The assign update events code depends on the "old" events in the
DB being returned in the same order as they were originally made,
however there was no guarantee that this would be the case.

There were also situations where the priority would not be explicitly
set (e.g., when creating the "original" event).
mod/assign/lib.php