First, it is indeed journal, style, or field dependent.
Papers that refer to works as 1 or [4,7,12,13,20] are difficult to read and communicate very little sense of timeline. This may be appropriate but I personally believe this method should be avoided where possible.
To answer you directly, your citation attempt in the question is certainly feasible from some journals and fields. I would do what is best for your paper's voice as it communicates to your readers.
I believe my stated position is consistent with that of Dr. Gerald Brown, a National Academy of Engineering (NAE) member and professor at the Naval Postgraduate School. See below. I welcome differing perspectives and views from other disciplines.
Brown, Gerald G. 2004 "How To Write About Operations Research," PHALANX, Vol. 37, No. 3, p. 7. Accessed 27 July 2018.