<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>Is there a way in a QGIS expression to format numbers with leading zeros up to n places before the decimal point? E.g. 1 should be 00001, 10 should be 00010, etc.</p>
<p>I would need this for correct sorting.</p>
<p>I know, I could probably write a python expression, or something complicated with CASE WHEN, but I'd like to avoid that.</p>
<p>Perhaps something is already existing?</p>
<p>Andreas</p>
</body></html>