reSort a bit better