simdarray: implement sorted

small changes to the sorted test:
* removed old debug code
* swapped COMPARE arguments
* fixed end iterator argument to std::sort, reference[Vec::Size] was an
  out-of-bounds use - adjusting the pointer afterwards to point behind
  the last entry if fine, though.

Signed-off-by: Matthias Kretz <kretz@kde.org>