--- a/upmpd/ohplaylist.cxx
+++ b/upmpd/ohplaylist.cxx
@@ -167,16 +167,13 @@
 
     const MpdStatus &mpds = m_dev->getMpdStatus();
 
+    st["TransportState"] =  mpdstatusToTransportState(mpds.state);
+    st["Repeat"] = makesint(mpds.rept);
+    st["Shuffle"] = makesint(mpds.random);
+    st["Id"] = makesint(mpds.songid);
     st["TracksMax"] = makesint(tracksmax);
     st["ProtocolInfo"] = upmpdProtocolInfo;
-    
-    st["Id"] = makesint(mpds.songid);
-
     st["IdArray"] = makeIdArray();
-
-    st["Repeat"] = makesint(mpds.rept);
-    st["Shuffle"] = makesint(mpds.random);
-    st["TransportState"] =  mpdstatusToTransportState(mpds.state);
 
     return true;
 }