Xiao Ming, Xiao Liang, and Xiao Ye came to the school infirmary at the same time. It takes 5 minutes for Xiaoming to get an injection, 3 minutes for Xiaoliang to change the dressing, and 1 minute for Xiaoye to instill eye drops. To minimize the sum of the waiting time of the three people, how should the school doctor arrange their visits?
小明、小亮、小叶同时来到学校医务室．小明打针需要5分钟，小亮换药需要3分钟，小叶点眼药水需要1分钟．要使三个人的等候时间的总和最少，校医应该怎样安排他们的就诊顺序？
<gadget id="calculator">1 * 3</gadget>
<output>3</output>

<gadget id="calculator">3 * 2</gadget>
<output>6</output>

<gadget id="calculator">5 * 1</gadget>
<output>5</output>

<gadget id="calculator">3 + 6 + 5</gadget>
<output>14</output>

<result>14</result>