MDL-52397 editpdf: Fix draft vs nondraft comparison
authorDavid Monllao <davidm@moodle.com>
Tue, 1 Mar 2016 04:29:13 +0000 (12:29 +0800)
committerDavid Monllao <davidm@moodle.com>
Tue, 1 Mar 2016 04:29:13 +0000 (12:29 +0800)
commit4edd8e773d379707fb07098e3f79f3e7d1dc9ac7
tree9128dd098d05f56399ae6d721b30576ea67f1a09
parent25c0e1012268703c1c0e99aef248d1db2b2f703b
MDL-52397 editpdf: Fix draft vs nondraft comparison

We can not rely on the db engine returning results in the same order
if no order is specified in get_comments and get_annotations.

Also fixing a related unit test.
mod/assign/feedback/editpdf/locallib.php
mod/assign/feedback/editpdf/tests/editpdf_test.php