Thanks for all the helpful responses - the sorting function is definitely working great (you can see it here: http://www.3eimpact.org/index.php?id=38&tab=categories
). I was just wanting to understand what was going on in the last line of code so I’ll be able to adapt it as needed for other situations. It looks like its going to take a bit more research before I can get my mind wrapped around some of these concepts. Thanks again for the pointers and helpful links.
God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.