closes #63 added option for ordering