Trying to display a views list with order based upon current node being viewed
In your View, under Block Display, go to:

Advanced-> Contextual filters (Add)->Content: NID

In the "When the filter value is NOT available" option select: 

Provide default value-> PHP Code

and add the following code:

if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1))) {
  $nodeid = arg(1);
  $result = strval($nodeid-2) . "+" . strval($nodeid-1) . "+" . strval($nodeid) . "+" . strval($nodeid+1) . "+" . strval($nodeid+2);
  return $result;
}


Last but not least, under "More", select the option: "Allow multiple values"