going with the explicit approach, mush faster
first draft of doc viewer script
sort elements