global and picture sorting are implemented but untested
global and picture sorting work