I have this model:

```
class ArticleTagList(db.Model):
    article_tags = db.StringListProperty()

```

In the `EditArticleHandler` I do:

```
        tag_query = ArticleTagList.all()

        for tag in tag_query:
            for i in range(len(tag.article_tags)):

                self.response.out.write(""" <span id="small-tags">
                <input type="checkbox" name="article_tag" value="%s">%s  </span>"""
                 % (tag.article_tags[i], tag.article_tags[i]))

```

But it would be nice to print these tags in alpabetical order.

Of course trying 

```
        tag_query.sort()

```

gives 

```
AttributeError: 'Query' object has no attribute 'sort'

```

How do I sort the queried list? Thanks.

**Update**

Thanks for the answers. I am having difficulty understanding query results so not sure I understand the comments below; but this is how I solved it and I would appreciate comments why this a good solution or why it is not a good solution. (for instance, is it still wrong to use `range()` to iterate?) Thanks!

```
    query = ArticleTagList.all()
    items = query.get()

    items.article_tags.sort()

    for i in range(len(items.article_tags)):
        self.response.out.write(""" <span id="small-tags">
            <input type="checkbox" name="article_tag" value="%s">%s  </span>"""
             % (items.article_tags[i], items.article_tags[i]))

```