sort by both format