A multiway merge sorting network is presented, which generalizes the t
echnique used in the odd-even merge sorting network. The merging netwo
rk described here is composed of m k-way mergers and a combining netwo
rk. It arranges k ordered lists of length n each into one ordered list
s in T(k) + inverted left perpendicularlog(m) ninverted right perpendi
cular inverted left perpendicularlog2 kinverted right perpendicular in
verted left perpendicularlog2 minverted right perpendicular steps, whe
re T(k) is the number of steps needed to sort k keys in order; and k a
nd m are any integers no longer restricted to 2.