libtaskmanager: Add a new sort mode "LastActivated"
Tasks are ordered following SortLastActivated sort mode: tasks are sorted by opening history.
Grouped tasks are sorted by the last activated task in the group.
Co-Authored-By: Yari Polla skilvingr@gmail.com
Follow-up: plasma-desktop!907 (closed)
Edited by Fushan Wen