fix photo browser sorting