Adding sorting dictionary feature with auto tab switching