sorted parameters: use QString::compare instead of strcmp
sorted parameters: make search more efficient