MDL-66074 mod_forum: Add sorting in WS for discussion fetching