diff --git a/check_memory b/check_memory
index f231a643077002831cb25aa2bc357780025cf189..358b6854e1ecf06246f9023a02a8e19c185b4405 100755
--- a/check_memory
+++ b/check_memory
@@ -26,12 +26,13 @@
 # 2022-03-10  v1.7  <axel.hahn@iml.unibe.ch> add cli param -p; update help
 # 2023-02-13  v1.8  <axel.hahn@unibe.ch>     shell fixes
 # 2023-07-28  v1.9  <axel.hahn@unibe.ch>     update help page
+# 2023-09-14  v1.10 <axel.hahn@unibe.ch>     fix sort: write failed: 'standard output': Broken pipe
 # ======================================================================
 
 
 . "$(dirname $0)/inc_pluginfunctions"
 
-self_APPVERSION=1.9
+self_APPVERSION=1.10
 
 # ----------------------------------------------------------------------
 # FUNCTIONS
@@ -152,7 +153,11 @@ grep -E     "^(Mem|Cache|Buffers|Swap|Slab|SReclaimable)" "/proc/meminfo"
 if [ $ramUsage -gt $iMinRamUsageToShowProcesses ]; then
   echo
   echo "RAM usage is higher $iMinRamUsageToShowProcesses percent ... showing most consuming processes:"
-  ps aux | head -1; ps aux | sort -nrk 4 | head -n 5
+  ps aux | head -1
+  
+  # sort: write failed: 'standard output': Broken pipe
+  # ps aux | sort -nrk 4 | head -n 5
+  ps aux | sort -nrk 4 | sed -n "1,5p"
 fi 
 
 # --- performance data
diff --git a/docs/20_Checks/check_memory.md b/docs/20_Checks/check_memory.md
index c0fbc952f7d2af1a022e3e9169e483f9e5375113..56ffa3be2db937fc1ec3eb99346b68d3f6533189 100644
--- a/docs/20_Checks/check_memory.md
+++ b/docs/20_Checks/check_memory.md
@@ -29,7 +29,7 @@ This plugin sends all values as performance data.
 ______________________________________________________________________
 
 CHECK_MEMORY
-v1.9
+v1.10
 
 (c) Institute for Medical Education - University of Bern
 Licence: GNU GPL 3