Media:Add one flag to keep all the logic in the switch

Merged Jian Li requested to merge ilearninging/medialibrary:appendSort into master

in sortRequest method add one flag in order to avoid depending on the type of sort, and keep all the logic in the switch

Edited by Jian Li

Merge request reports