sort & upload