Add basic sorting