Etymology
Today it means: In an untidy manner. Full definition →
From untidy + -ly or un- + tidily.
Etymology from Wiktionary, CC BY-SA 4.0.