Sort

resolves Issues #144 #131