Reorder and squash on one line
Fix median when list length is odd