MDL-75283 core: Fetch proper column mapping for sort
commitc4ba598a0bdd9f4cff86dfa67e57ebeea7c16a7d
authorJun Pataleta <jun@moodle.com>
Wed, 7 Sep 2022 12:40:53 +0000 (7 20:40 +0800)
committerIlya Tregubov <ilya@moodle.com>
Wed, 7 Sep 2022 13:16:03 +0000 (7 17:16 +0400)
treee988177ad2117ad8337d49bbfdc98058f3e4a375
parentf77ea5bffac158ea556f2c0102ab08cefe9ee8a9
MDL-75283 core: Fetch proper column mapping for sort

Calling \core_user\fields::get_sql() incerements a static uniqueid
variable. This should be called only once and not make a separate call
for the sort mapping data as it doing so will result to an incorrect
table alias for the sort mapping data.
lib/datalib.php