Base function, copy and paste from votes, which is for edit order. issue #11