Fix order text match ranges.
Merge pull request #598 from axsh/feature-alarm-log

Fix order text match ranges.