MDL-70913 core_badges: Use and update properly sortorder
authorSara Arjona <sara@moodle.com>
Tue, 16 Feb 2021 11:39:35 +0000 (12:39 +0100)
committerSara Arjona <sara@moodle.com>
Mon, 1 Mar 2021 12:04:00 +0000 (13:04 +0100)
commit9e5655b7c71de044fabbcc16c5c945c32653a56c
tree144001b5622a38fbf15cca771cb90268dcf16d48
parent95dd305cc6c84b5c6735df9e3506cebb79ac67f9
MDL-70913 core_badges: Use and update properly sortorder

Sortorder field in badge_external_backpack was updated with a wrong
value. This patch fixes this behaviour and adds sortorder as
sorting criteria for displaying the list of site backpacks.

In the phpunit method reviewed for covering this, a couple of
assertEquals() calls have been changed too to put the expected value
first.
badges/tests/badgeslib_test.php
lib/badgeslib.php
lib/db/upgrade.php
version.php