Sort BOM by drawing/folio

Hi all,

In Solidworks Electrical (2D schematic) 2015, I'm trying to generate BOMs, with each table sorted by drawing (folio), either by the drawing description or the user data for that drawing. In the report properties editor, there don't seem to be any existing variables that can reference the drawing a part is from, but I don't know enough but SWE SQL structure (or SQL) to know how to bring it out in expert mode.

Has anyone done something similar?

SolidworksElectrical