Sorting

Makes sorting work.
* The SorterInterface now compares QVariantMap.
* The sort works using qStableSort
* qStableSort uses a functor to be able to perform sorting.