sorting and slug