Add case-insensitive flag to sorting asserts

Fixes #9