enhace query view with sorting on time values, fixed #13