Sort Struct

JC Sort Struct


Struct used to sort items.

The Order int is assigned weight, for example for A-Z sorting we would set a item called 'abra' to 0

an item called book would have the order of '1'

and an item called cat '3'.

With this method we can plus our sort struct into the bubble sort command and have it work with any kind of ordering. The system contains examples for A-z and by Size.