LDB:sort module - change counters to "unsigned" where appropriate