add isSortable logic