Properly sort int roles
Use integer comparison for word count, line count, track, and release year.
BUG: 394355
Differential Revision: https://phabricator.kde.org/D12948