Add minLength option for Locate by layer

And etter handle order in tables (locate, edition, etc.)