Correct sorting
Making details work in firefox more reliably