photo sorting on queue upload