A good way to sort your cables is to group the wires for one appliance together. When you have to unplug or move that appliance, you won’t have trouble finding which cables belong to it.