QtAlgorithms have been deprecated (1 of 2)

Convert to std algorithms to avoid warnings. One qSort case is still
left since it seems to require a more elaborate fix.

Task-number: QTBUG-11022
Change-Id: Ieccc5050b127a58ff1f0aa7c488909f2acfa2972
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>