! hook sorting was not working properly

Signed-off-by: Spuds <spuds@spudsdesign.com>