# Grouping in export

**URL:** https://community.mp3tag.de/t/grouping-in-export/1240
**Category:** General Discussion
**Created:** [August 21, 2004, 10:48am UTC](https://community.mp3tag.de/t/grouping-in-export/1240 "2004-08-21T10:48:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pkar](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@pkar](https://community.mp3tag.de/u/pkar)
#### Post date: [August 21, 2004, 10:48am UTC](https://community.mp3tag.de/t/grouping-in-export/1240/1 "2004-08-21T10:48:26Z")

</div>

Hi,  
could you add "GROUP BY" to export configuration? I.e., when sorting on Artist field, mp3tag could use 'groupfooter' and 'groupheader' on every change in value in Artist.  
In this way, one can make HTML index page in form, e.g.  
ExportHeader:

  
GroupHeader: - Artist 1 
  
RecordData: - Title1
  
RecordData: - Title2
  
GroupFooter: 
  
GroupHeader: - Artist 2 
  
RecordData: - Title3
  
RecordData: - Title4
  
GroupFooter: 
  
ExportFooter:

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 25, 2004, 8:51am UTC](https://community.mp3tag.de/t/grouping-in-export/1240/2 "2004-08-25T08:51:24Z")

</div>

I'll think about this! Thanks for your suggestion.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [September 11, 2004, 11:22am UTC](https://community.mp3tag.de/t/grouping-in-export/1240/3 "2004-09-11T11:22:06Z")

</div>

Hi pkar,

please have a look at the latest [Development Build](http://developer.mp3tag.de). I've specified a new export configuration format, which adds the possibility of grouping.

Please also have a look at [html\_newexport](http://www.anytag.de/download/export/html_newexport.zip) for an example of the new syntax.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![pkar](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@pkar](https://community.mp3tag.de/u/pkar)
#### Post date: [September 12, 2004, 10:15am UTC](https://community.mp3tag.de/t/grouping-in-export/1240/4 "2004-09-12T10:15:23Z")

</div>

> I've specified a new export configuration format, which adds the possibility of grouping.  
> Please also have a look at (..) for an example of the new syntax.

Thanks.  
First, I speak (write?) as computer languages' theoretician - 'loop' command iterates throu e.g. albums, but inner loop uses outer loop implicity - should explicity.  
I must ask, also, why "loop..loopend" and not "for..next"? I know, every programming language has own syntax, but... 🙂  
And last, why loop("%artist"), not loop(%artist)? Why function(string\_expression), not function(expression)?

You convert GROUPBY problem into much broader problem - gave much powerfull export syntax. Good. For many people (e.g. you, me), good. But for most people - too powerful, too complicated, and - unusable (I wonder every time I meet with people who dont know programming etc., but such persons exist).  
So, If you could add much simpler "GROUP" (for computer newbies) and 'dedicate' new export format for gurus, your program will be much usefull for non-programmers world.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [September 12, 2004, 5:24pm UTC](https://community.mp3tag.de/t/grouping-in-export/1240/5 "2004-09-12T17:24:58Z")

</div>

You can also use $loop(field) without the qoutes and the percent sign and it should work.

I think the idea behind the $loop-thing is very easy to understand (even for non-programmers). And there is still the forum for asking questions and - for the traditionals - the old export.

~ Florian

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [April 4, 2022, 8:41pm UTC](https://community.mp3tag.de/t/grouping-in-export/1240/6 "2022-04-04T20:41:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
