Add sorting option for coords with metadata