Sorting param as Object instead if String

I had to implement a more complex sorting, so i needed to use an object instead of a simple String. This broke the == comperator used in the source code. 

Switching to angular.equals() both methods are supported.

Kind Regards