basic ordering functionality implemented