added ReorderSam.jar function