> 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?

ServiceNow auto-reformat and auto-sanitizes content in the TinyMCE editor to improve efficiency & compatibility. Unfortunately, this can occasionally make the content incompatible with the PDF generation engine. To work around this, you can replace the offending piece of content with a Merge Map containing the HTML code you need.

For example, to insert an image in your label, use a scripted Merge Map containing the code below, and then insert the Merge Map's key into your label template.

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