Edge Sorting is legal. However, what Phil Ivey did was have the dealer simplify the process by also turning the card. The judge ruled that the "turning" or "rotating" of the card by the dealer was cheating.
It's possible to gain a tremendous advantage over the casino, by edge sorting the cards - without having to have the dealer rotate the cards.
Ivey's team is estimated to have won several million at many different casinos.