changed get_uploads to order posts by upvotes