Fix for the just commited search update to fix expected sessions, sort order and when folder is has a value of 0