                                                                              ~'path
                                                                              ~'ui-state)
 
-          ~'data-order  (~'-> ~'data :order)                                                            ]
-
-             (comment ~'map (~'fn[~'x] (~'get ~'data-order ~'x)) (~'range (:start ~position) (~'inc
+          ~'data-order  (~'-> ~'data :order)
+
+
+
+          ]
+
+
+
+     (into [] (~'map
+               (~'fn[~'x] (~'get-in ~'data [:values (~'get ~'data-order ~'x) :value]))
+               (~'range (:start ~position) (~'inc
                                                                                       (~'min (:end ~position) (~'-> ~'data :count) )
-                                                                                      )))
-
-     ~'data
+                                                                                      ))))
+     ;~'data
      ))
 
 ;(macroexpand-1 '(data-view-v2 "aa" {:relative-path [:a]} {} (div )))

        list-of-sql        (map (fn[x]
                                  (if (.startsWith (str x)
                                                   "(quote ") (apply str "'" (rest x)) x)
                                  ) (butlast (butlast sql-args)))
        main-params       (last (butlast   sql-args))

        sql-as-a-string   (str command " " (apply str (for [arg (into []
                                                                    (apply list list-of-sql))] (str arg " ") ) ))

        ]
    (cond
      (= (type type-of-last-arg)  (type {}))
      `(remote-sql-parser "realtime" ~@select-args)

      :else
      `(sql-parser  "realtime" ~@select-args)
