sort proc objs with a key