Edge sorting is a technique used to gain an advantage in card games. It involves studying the back of the cards for inconsistencies and using them to identify their value. Although edge-sorting isn’t illegal, it’s not a welcome trick in most casinos. If you get caught, you might have to leave the table.