public function prepare_items() {
		$per_page = $this->get_items_per_page( 'networks_per_page' );
		$pagenum  = $this->get_pagenum();

		$order_by = filter_input( INPUT_GET, 'orderby', FILTER_SANITIZE_STRING );
		$order_by = ! empty( $order_by ) ? sanitize_key( $order_by ) : '';
		$order    = filter_input( INPUT_GET, 'order', FILTER_SANITIZE_STRING );
		$order    = ! empty( $order ) ? strtoupper( $order ) : 'ASC';
		$search   = filter_input( INPUT_GET, 's', FILTER_SANITIZE_STRING );
		if ( ! $search ) {
			$search = filter_input( INPUT_POST, 's', FILTER_SANITIZE_STRING );
		}

		$search = stripslashes( trim( $search ) );
		if ( false !== strpos( $search, '*' ) ) {
			$search = trim( $search, '*' );
		}

		if ( ! in_array( $order, array( 'DESC', 'ASC' ), true ) ) {
			$order = 'ASC';
		}

		$args = array(
			'number'        => intval( $per_page ),
			'offset'        => intval( ( $pagenum - 1 ) * $per_page ),
			'orderby'       => $order_by,
			'order'         => $order,
			'search'        => $search,
			'no_found_rows' => false,
		);

		$query = new WP_Network_Query();

		$this->items = $query->query( $args );
		$count       = $query->found_networks;

		$this->set_pagination_args( array(
			'total_items' => $count,
			'per_page'    => $per_page,
		) );
	}