Changed string sorting to case-insensitive
Implemented global fields management