Make table able to sort react components