Question: I am using `ctypes` to interface with a DLL written in C and I created an array with this: 

```
foo = (c_double * 1000)()
bar = (c_double * 1000)()

```

I can get all the values with `foo[:]` and the type is: 

```
type(foo)
c_double_array_1000

```

However I cannot subtract foo with bar:

```
unsupported operand type(s) for -: 'c_double_Array_1000' and 'c_double_Array_1000'

```

What did I miss?

Answer: 
Here's a working example using JQuery **[contain](https://api.jquery.com/contains-selector/)** selector like following :

```js
$(function(){
  var select_element = $('#guestdetails_country-menu');
  select_element.find("li a:contains('Albania')").parent().insertBefore(select_element.find('li:eq(1)'));
});
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<ul id="guestdetails_country-menu" class="ui-selectmenu-menu ui-widget ui-    widget-content ui-selectmenu-menu-dropdown ui-corner-bottom w230 ui-selectmenu-open" aria-labelledby="guestdetails_country-button" role="listbox" aria-hidden="false" style="z-index: 9999; width: 230px; height: 250px; top: 393px; left: 620px;" aria-disabled="false" aria-activedescendant="ui-selectmenu-item- 8">
  <li class="" role="presentation">
    <a id="" aria-selected="false" role="option" tabindex="-1" href="#">First element</a>
  </li>
  <li role="presentation">
    <a aria-selected="false" role="option" tabindex="-1"  href="#">Afghanistan</a>
  </li>
  <li role="presentation">
    <a aria-selected="false" role="option" tabindex="-1" href="#">Åland Islands</a>
  </li>
  <li role="presentation">
    <a aria-selected="false" role="option" tabindex="-1" href="#">Albania</a>
  </li> 
</ul>
```

Hope this helps.
Presuming you don't actually want that empty `LI` at the top, I would remove that, and just run:

```
var $select = $("#guestdetails_country-menu");
$select.prepend($select.find("li:has(a:contains('Albania'))"))

```

(prepend will work the same as insertBefore(el0), just a bit more concise)