static String composeSortedKey(String prefix,int value){
  return String.format("%s%010d",prefix,value);
}

static String composeSortedKey ( String prefix , int value ) { return String . format ( "%s%010d" , prefix , value ) ; }
insert some leading 0 ' s in front of the value , to make the keys sorted .
