use method to submit post and sort posts