Fix bug #2266: before this fix, the lines of the timeline view were always sorted by alphabetical order, ignoring the native order of the model on which the group_by field points to.
Fix duplicate entries in the 'fields' argument when the 'colors' parameters uses the same field in multiple conditions.