> For the complete documentation index, see [llms.txt](https://docs.yansalabs.com/asset-tag-maker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yansalabs.com/asset-tag-maker/technical-docs/frequently-asked-questions.md).

# Frequently Asked Questions

### How can I make my labels print in alphabetical order?

Labels will be generated in the order they are filtered, according to the **Order By** field on the Data Source condition. In the case of scripted Data Sources, you can set the order using a query.orderBy() term in the GlideRecord query.

### When generating a batch of labels, I see an error about an incorrect closing tag for \<img> (or another HTML attribute). How do I fix this?

If the template is managed by [**Label Designer**](/asset-tag-maker/technical-docs/building-a-label-template/creating-labels/label-designer.md), add the artwork with **+ Image**. Label Designer selects images from ServiceNow's Images (`db_image`) table and generates well-formed markup. You need the `image_admin` role to view, insert, or edit images in the designer.

For a legacy, hand-authored **Template HTML** layout, ServiceNow automatically reformats and sanitizes content in the TinyMCE editor. This can occasionally make the content incompatible with the PDF generation engine. To work around the issue, replace the offending content with a scripted Merge Map containing the HTML code you need, then insert the Merge Map's key into the label template.

```
return '<img src="My_Logo.jpg" alt="My Logo" height="30" />';
```
