added plan list sorting and formatting