refactor client db result sort; use client time instead of servet time