Update sorting.py

Fixing concat bug on classes