demo for sort