Created a sort string get method.