Merge pull request #248 from skrenek/master

Da da da dum!  Facebook Envy!
Add sorting to child arrays in filterDoc
Encode uri before ajax call.
Updates for modals.
Fix uri encoding.