Add sortfunction to shooglelist