store in sorted form